﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using DAL;

namespace BLL
{
    public class BSpecialCar
    {
        private readonly DSpecialCar _dSpecialCar = new DSpecialCar();

        public bool PhoneNumberExists(string phoneNumber)
        {
            return _dSpecialCar.PhoneNumberExists(phoneNumber);
        }
         
        public bool UpdateImeiByPhoneNumber(string phoneNumber, string imei)
        {
            return _dSpecialCar.UpdateImeiByPhoneNumber(phoneNumber, imei);
        }

        public bool Add(Model.SpecialCarInfo model)
        {
            return _dSpecialCar.Add(model);
        }

        public bool Update(Model.SpecialCarInfo model)
        {
            return _dSpecialCar.Update(model);
        }
 
        public bool Delete(int id)
        {
            return _dSpecialCar.Delete(id);
        }
 
        public Model.SpecialCarInfo GetModel(int id)
        {
            return _dSpecialCar.GetModel(id);
        }

        public DataSet GetList(string strWhere)
        {
            return _dSpecialCar.GetList(strWhere);
        }
        
        public Model.SpecialCarInfo GetModelByPhoneNum(string phoneNumber)
        {
            return _dSpecialCar.GetModelByPhoneNum(phoneNumber);
        }
    }
}
